<?php
session_start();
$loggedin=0;
if(isset($_SESSION['is_loggedin']))
$loggedin=1;
else
{
session_destroy();
}
?>